package com.wr.modules.system.domain.sys.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author MyPC
 */
@Data
@Schema(description = "用户信息响应实体")
public class SysUserVo {

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "所属部门id")
    private Long deptId;

    @Schema(description = "用户名称")
    private String uk;

    @Schema(description = "空间url")
    private String spaceUrl;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "邮箱")
    private String mailbox;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "性别")
    private String sex;

    @Schema(description = "注册类型")
    private String registerType;

    @Schema(description = "住址")
    private String addr;

    @Schema(description = "用户状态")
    private String status;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "是否超级管理员")
    private boolean admin;

    @Schema(description = "最后一次登录的ip")
    private String loginIp;

    @Schema(description = "最后一次登录的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date loginDate;

}
